package com.bjsxt.chapter14_mediator;

/**
 * @ClassName Development
 * @Description 研发部
 * @Author 黑马程序员
 * @Date 15:47 2024/6/23
 * @Version 1.0
 **/
public class Development implements Department{

    // 持有中介者(总经理)的引用
    private Mediator m;

    public Development(Mediator m) {
        this.m = m;
        m.register("development",this);
    }

    @Override
    public void selfAction() {
        System.out.println("专心科研!开发项目!");
    }

    @Override
    public void outerAction() {
        System.out.println("汇报项目进度，没钱了，请求资金支持!");
        m.command("facial");
    }
}
